package com.bst;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.core.env.Environment;

import java.net.InetAddress;
import java.net.UnknownHostException;

@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
@MapperScan(value = {"com.bst.**.mapper"})
@EnableDiscoveryClient
public class HdpConfigApplication {

    private static Logger logger = LoggerFactory.getLogger(HdpConfigApplication.class);

    public static void main(String[] args) throws UnknownHostException {
        System.setProperty("spring.cloud.bootstrap.enabled", "true");
        SpringApplication.run(HdpConfigApplication.class, args);

    }


}
